package cn.gson.oasys.config;

import cn.gson.oasys.wrapper.MyMapWrapperFactory;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Administrator
 * @date 2022/5/12 16:20
 * @Description TODO
 */
@Configuration
public class MybatisConfigurationCustomizerConfig {
	@Bean
	public ConfigurationCustomizer mybatisConfigurationCustomizer(){
		return new ConfigurationCustomizer() {
			@Override
			public void customize(org.apache.ibatis.session.Configuration configuration) {
				configuration.setObjectWrapperFactory(new MyMapWrapperFactory());
			}
		};
	}
}
